package com.bw.risk.controller;


import com.bw.risk.pojo.TbRiskWhite;
import com.bw.risk.service.TbRiskWhiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 白名单 前端控制器
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/tb-risk-white")
public class TbRiskWhiteController {

    @Autowired
    private TbRiskWhiteService whiteService;

    //白名单列表
    @GetMapping("/list")
    public List<TbRiskWhite> list(){
        return whiteService.list();
    }

}
